package com.neusoft.hifly.rpc.mobile.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 移动端配置信息
 */
@Component
public class MobileConfig {
	// 是否推送到手机客户端
	@Value("${mobile.push.mobile:false}")
	private boolean pushMobile;

	// 极光推送
	@Value("${mobile.jiguang.master.secret:null}")
	private String jiguangMasterSecret;

	@Value("${mobile.jiguang.app.key:null}")
	private String jiguangAppKey;

	// 推送方式，是生产环境还是正式环境(release或者debug)
	@Value("${mobile.jiguang.push.type:null}")
	private String jiguangPushType;

	public boolean isPushMobile() {
		return pushMobile;
	}

	public void setPushMobile(final boolean pushMobile) {
		this.pushMobile = pushMobile;
	}

	public String getJiguangMasterSecret() {
		return jiguangMasterSecret;
	}

	public void setJiguangMasterSecret(final String jiguangMasterSecret) {
		this.jiguangMasterSecret = jiguangMasterSecret;
	}

	public String getJiguangAppKey() {
		return jiguangAppKey;
	}

	public void setJiguangAppKey(final String jiguangAppKey) {
		this.jiguangAppKey = jiguangAppKey;
	}

	public String getJiguangPushType() {
		return jiguangPushType;
	}

	public void setJiguangPushType(final String jiguangPushType) {
		this.jiguangPushType = jiguangPushType;
	}

}
